home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import flash.display.MovieClip;
- import flash.display.SimpleButton;
- import flash.text.TextField;
-
- [Embed(source="/_assets/assets.swf", symbol="DressupModel")]
- public class DressupModel extends Model
- {
-
-
- public var OKButton:SimpleButton;
-
- public var Title:TextField;
-
- public var PoseButton:SimpleButton;
-
- public var ModelTimerBar:TimerBarSmall;
-
- public var Portrait:MovieClip;
-
- public var ModelTimer:TimerTracker;
-
- public var PartnerName:String;
-
- protected var _modeltheme:DressupTheme;
-
- public function DressupModel()
- {
- super();
- }
-
- public function get ModelTheme() : DressupTheme
- {
- return _modeltheme;
- }
-
- public function hide() : void
- {
- visible = false;
- OKButton.visible = visible;
- PoseButton.visible = visible;
- Title.visible = visible;
- ModelTimerBar.visible = visible;
- Portrait.visible = visible;
- }
-
- public function set ModelTheme(param1:DressupTheme) : void
- {
- var _loc2_:Boolean = false;
- var _loc3_:String = null;
- _modeltheme = param1;
- _loc2_ = false;
- if(_modeltheme.ThemePartner != null)
- {
- PartnerName = _modeltheme.ThemePartner.Name;
- Portrait.gotoAndStop(PartnerName);
- }
- else
- {
- PartnerName = null;
- Portrait.visible = false;
- }
- for each(_loc3_ in _modeltheme.TargetAttributes)
- {
- if(param1.Title.toLowerCase().indexOf(_loc3_.toLowerCase()) >= 0)
- {
- Title.text = _modeltheme.Description;
- _loc2_ = true;
- break;
- }
- }
- if(_loc2_ == false)
- {
- Title.text = _modeltheme.Description;
- }
- }
- }
- }
-